<template>
  <div>
    <el-date-picker
      value-format="yyyy-MM-dd HH:mm:ss"
      v-model="time1"
      type="datetime"
      placeholder="选择日期时间"
    >
    </el-date-picker>

    <el-date-picker
      size="mini"
      v-model="time2"
      type="daterange"
      range-separator="至"
      start-placeholder="开始日期"
      end-placeholder="结束日期"
      value-format="yyyy-MM-dd"
    >
    </el-date-picker>
  </div>
</template>

<script>
export default {
  data () {
    return {
      // time1: this.parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}'), // ruoyi函数parseTime
      time1: new Date(),
      time2: []
    }
  }
}
</script>

<style>
</style>
